package com.mq.rabbitmqtrac.service;

import com.mq.rabbitmqtrac.domain.Blog;
import org.springframework.web.bind.annotation.*;

public interface BlogService {

    @RequestMapping(value = "/blog", method = RequestMethod.POST)
    Blog saveBlog(@RequestBody Blog blog) throws  Exception;

    @RequestMapping(value = "/blog/{id}", method = RequestMethod.GET)
    Blog getBlog(@PathVariable("id") long id) throws  Exception;
}


